<?php
	//include the main class file
	require_once(get_template_directory() . "/Tax-meta-class/Tax-meta-class.php");
	if (is_admin()){
	  /*
	   * prefix of meta keys, optional
	   */
	  $prefix = 'cat_';
	  /*
	   * configure your meta box
	   */
	  $config = array(
	    'id' => 'cat_meta_box',          // meta box id, unique per meta box
	    'title' => 'Options',          // meta box title
	    'pages' => array('category'),        // taxonomy name, accept categories, post_tag and custom taxonomies
	    'context' => 'normal',            // where the meta box appear: normal (default), advanced, side; optional
	    'fields' => array(),            // list of meta fields (can be added by field arrays)
	    'local_images' => false,          // Use local or hosted images (meta box images for add/remove)
	    'use_with_theme' => true          //change path if used with theme set to true, false for a plugin or anything else for a custom path(default false).
	  );


	  /*
	   * Initiate your meta box
	   */
	  $my_meta =  new Tax_Meta_Class($config);

	  /*
	   * Add fields to your meta box
	   */

	  //checkbox field
	  $my_meta->addCheckbox($prefix.'is_homepage',array('name'=> __('Active is homepage ','tax-meta')));
	  //select field
	  $my_meta->addSelect($prefix.'columns_type',array('1'=>'1 column','2'=>'2 columns'),array('name'=> __('Display column type','tax-meta'), 'std'=> array('1')));

	  //Finish Meta Box Decleration
	  $my_meta->Finish();
	}
?>